package com.shisfish.library.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.context.ApplicationContext;

import com.shisfish.library.Inter.IBookLendInter;
import com.shisfish.library.Model.BookLend;
import com.shisfish.library.Utils.Global.GetACXmlUtils;

public class BookLendImpl implements IBookLendInter {

	private ApplicationContext ac = GetACXmlUtils.getACXml();
	IBookLendInter mapper = (IBookLendInter) ac.getBean("bookLendMapper");
	
	@Override
	public int insertOne(BookLend t) {
		// TODO Auto-generated method stub
		return mapper.insertOne(t);
	}

	@Override
	public int insertAll(List<BookLend> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateOne(BookLend t) {
		// TODO Auto-generated method stub
		return mapper.updateOne(t);
	}

	@Override
	public int updateAll(List<BookLend> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<BookLend> selectById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<BookLend> selectByKey(String key) {
		// TODO Auto-generated method stub
		return mapper.selectByKey(key);
	}

	@Override
	public int countAll() {
		// TODO Auto-generated method stub
		return mapper.countAll();
	}

	@Override
	public List<BookLend> selectAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int deleteOneById(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllById(List<?> ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteOneByKey(String key) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllByKey(List<?> keys) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<BookLend> selectOverdue() {
		// TODO Auto-generated method stub
		return mapper.selectOverdue();
	}

	@Override
	public List<BookLend> selectAllMessage(int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectAllMessage(currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> selectAllMessage1(int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectAllMessage1(currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> maxBorrowed() {
		// TODO Auto-generated method stub
		return mapper.maxBorrowed();
	}

	@Override
	public int countByBorrower(String borrower) {
		// TODO Auto-generated method stub
		return mapper.countByBorrower(borrower);
	}

	@Override
	public List<Map<String, Object>> selectByBorrower(String borrower,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectByBorrower(borrower, currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> selectByDate(String choDate,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectByDate(choDate, currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> lendLogByDate(String choDate,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.lendLogByDate(choDate, currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> lendLogByDateBorrower(String borrower,
			String choDate, int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.lendLogByDateBorrower(borrower, choDate, currentPage, pageSize);
	}

	@Override
	public int countByDate(String choDate) {
		// TODO Auto-generated method stub
		return mapper.countByDate(choDate);
	}

	@Override
	public int countLendLogByDate(String choDate) {
		// TODO Auto-generated method stub
		return mapper.countLendLogByDate(choDate);
	}

	@Override
	public int countLendLogByDateBorrower(String borrower, String choDate) {
		// TODO Auto-generated method stub
		return mapper.countLendLogByDateBorrower(borrower, choDate);
	}

	@Override
	public int bookLogCount(String isbn) {
		// TODO Auto-generated method stub
		return mapper.bookLogCount(isbn);
	}

	@Override
	public List<Map<String, Object>> bookLogPage(String isbn, int currentPage,
			int pageSize) {
		// TODO Auto-generated method stub
		return mapper.bookLogPage(isbn, currentPage, pageSize);
	}

	@Override
	public List<BookLend> selectRemind(int date) {
		// TODO Auto-generated method stub
		return mapper.selectRemind(date);
	}

}
